/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package vadung.contragame2d;

import java.util.Random;

/**
 *
 * @author dung.voanh
 */
public interface DEFINE {
    static final Random RAND = new Random();
    //-----------------
    static final int FPS = 15;
    static final long TIME_PER_FRAME = 1000 / FPS;
      
    //State my type
    static final int STATE_LOGO = 0;
    static final int STATE_SPLASH = 1; 
    static final int STATE_MAINMENU = 2;
    static final int STATE_NEWGAME = 3; 
    static final int STATE_CONFIRM_MENU = 4; 
    
    // Message type 
    static final int MESSAGE_INIT = 0;
    static final int MESSAGE_UPDATE = 1;
    static final int MESSAGE_RENDER = 2;
    static final int MESSAGE_EXIT = 3;
    // Key type
    static final int KEY_UP = 1;
    static final int KEY_DOWN = 2;
    static final int KEY_LEFT = 4;
    static final int KEY_RIGHT = 8;
    static final int KEY_FIRE = 16;    
    static final int KEY_SOMETHING = 1024;       
    
    // Anchor transform  
    public static final int TRANS_NONE = 0;
    public static final int TRANS_ROT90 = 5;
    public static final int TRANS_ROT180 = 3;
    public static final int TRANS_ROT270 = 6;
    public static final int TRANS_MIRROR = 2;
    public static final int TRANS_MIRROR_ROT90 = 7;
    public static final int TRANS_MIRROR_ROT180 = 1;
    public static final int TRANS_MIRROR_ROT270 = 4;
    
    // State of MyActor
    public static final int ACTOR_STATE_NORMAL = 16;
    public static final int ACTOR_STATE_MOVE_LEFT = 1;
    public static final int ACTOR_STATE_MOVE_RIGHT = 2;
    public static final int ACTOR_STATE_UP = 4;
    public static final int ACTOR_STATE_DOWN = 8;
    public static final int ACTOR_STATE_MOVE_LEFT_UP = 32;
    public static final int ACTOR_STATE_MOVE_RIGHT_UP = 64;
    public static final int ACTOR_STATE_MOVE_LEFT_DOWN = 128;
    public static final int ACTOR_STATE_MOVE_RIGHT_DOWN = 256;
    
    // type
    public static final int OBJECT_TYPE_PLAYER = 0;
    public static final int OBJECT_TYPE_ENEMY1 = 1;
    public static final int OBJECT_TYPE_ENEMY2 = 2;
    public static final int OBJECT_TYPE_BULLET = 3;
    public static final int OBJECT_TYPE_MAP = 4;
    
    // Touch State
    public static final int TOUCH_NONE = 0;
    public static final int TOUCH_PRESS = 1;
    public static final int TOUCH_RELEASE = 2;
    
    //RMSManager
    public static final String STR_RMS_MANAGER = "RMS";
}
